package com.dme.modules.web01.controller;

import com.dme.modules.service.person.PersonService;
import com.dme.modules.service.student.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 喜欢编程的代先生
 * @Date: 2022-06-12 12:35
 * @Description: 拒绝侵权
 */
@RestController
public class HelloWeb01Controller {

    private PersonService personService;

    private StudentService studentService;


    @Autowired
    public void setPersonService(PersonService personService) {
        this.personService = personService;
    }

    @Autowired
    public void setStudentService(StudentService studentService) {
        this.studentService = studentService;
    }

    @RequestMapping(path = "/helloWeb01")
    public String helloWeb01(){
        System.out.println("controller................");
        studentService.serviceTest();
        return "helloWeb01";
    }

}
